import JSEncrypt from 'jsencrypt';
const base = {
    encryptor: new JSEncrypt(),
    publicKey:'MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKoR8mX0rGKLqzcWmOzbfj64K8ZIgOdHnzkXSOVOZbFu/TJhZ7rFAN+eaGkl3C4buccQd/EjEsj9ir7ijT7h96MCAwEAAQ==',
    encrypt(key){
        return base.encryptor.encrypt(key);
    },
}
base.encryptor.setPublicKey(base.publicKey);
export default base